
// https://www.rollupjs.com/guide/command-line-reference/

import esbuild from 'rollup-plugin-esbuild'

const baseConfig = {
  input: './src/index.js',
  output: {
    file: '../home/build/three-plugin-free.js',
    format: 'es',
  },
  plugins: [
  ],
  external: [
    'three', /three\/.*/
  ],
}

const tsType = Object.assign({}, baseConfig);

export default commandLineArgs => {
  let rollupBuild;

  rollupBuild = baseConfig;

  tsType.plugins.push(esbuild());
  return rollupBuild;
}
